package io.github.wslxm.springbootplus2.manage.sys.model.dto;

import io.github.wslxm.springbootplus2.core.base.model.BaseDto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;

/**
 * base--sys--用户管理 DTO
 *
 * <p>
 * ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
 * </p>
 *
 * @author ws
 * @email 1720696548@qq.com
 * @date 2025-09-24 09:26:12
 */
@Data
@ToString(callSuper = true)
@Schema(name = "base--sys--用户管理")
public class SysUserAkSkDTO extends BaseDto {

    private static final long serialVersionUID = -1970661008012398592L;

    @Schema(description = "用户Id")
    @NotBlank(message = "sys.user_ak_sk.userId.NotBlank")
    @Length(min = 0, max = 32, message = "sys.user_ak_sk.userId.Length")
    private String userId;

    @Schema(description = "有效期")
    @NotNull(message = "sys.user_ak_sk.expireTime.NotBlank")
    private LocalDateTime expireTime;

    @Schema(description = "备注")
    @Length(min = 0, max = 256, message = "sys.user_ak_sk.remarks.Length")
    private String remarks;
}

